//
//  VideoPlayerViewController.h
//  ShowYork
//
//  Created by hxh on 2020/9/4.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "RPBaseViewController.h"
#import "LessonDetailModel.h"
#import "LessonPageItemModel.h"
NS_ASSUME_NONNULL_BEGIN

/// 更新学习计划按钮状态
typedef void(^updateUserPlanStatusBlock)(void);
/// 更新视频播放进度
typedef void(^updateVideoProgressBlock)(CGFloat currentTime,CGFloat totalTime);

typedef void(^updateVideoProgressWithCurrentModelBlock)(CGFloat currentTime,CGFloat totalTime,LessonPageItemModel *itemModel);


@interface VideoPlayerViewController : RPBaseViewController
@property (nonatomic,strong)LessonDetailModel *lessonModel;
@property (nonatomic,strong)NSArray<LessonPageItemModel *>*items;
@property (nonatomic,copy)updateUserPlanStatusBlock updatePlanStatus;
@property (nonatomic,copy)updateVideoProgressBlock updateVideoProgress;
@property (nonatomic,copy)updateVideoProgressWithCurrentModelBlock updateVideoProgressWithCurentModel;

- (void)stopVideoPlayer;

@end

NS_ASSUME_NONNULL_END
